﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;

namespace AOP.Rougamo
{
    class Program
    {
        static void Main(string[] args)
        {
            //Service.Sync("12213");
            //Console.WriteLine("控制台主线调度结束");


            var json = "{ \"12\":\"双鱼座\",\"11\":\"水瓶座\",\"10\":\"摩羯座\",\"9\":\"射手座\",\"8\":\"天蝎座\",\"7\":\"天秤座\",\"6\":\"处女座\",\"5\":\"狮子座\",\"4\":\"巨蟹座\",\"3\":\"双子座\",\"2\":\"金牛座\",\"1\":\"白羊座\"}";
            Dictionary<string, string> newFields = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
            var result = newFields.Select(x => new Result { key = x.Key, value = x.Value }).ToList();
            System.Console.ReadKey();
        }










        public class Result
        {
            public string key { get; set; }

            public string value { get; set; }
        }
    }
}
